package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.SysUser;

import java.util.List;
import java.util.Map;

public interface UserService {
	/**
	 * 用户登录
	 * @param username 用户名
	 * @param password 密 码
	 * @return
	 */
	boolean login(String username,String password);

    SysUser findByUsername(String username);

    PageResult findPage(QueryPageBean pageBean);

    void updateUser(SysUser sysUser, Integer[] checkitemIds);

	SysUser findByUserId(Integer id);

	List<Integer> findRoleIdByUserId(Integer userId);

	void addUser(SysUser sysUser, Integer[] checkitemIds);

	void deleteUserById(Integer id);

    List<Map<String, Object>> findMenuByUserName(String uname);
}